#include"mystdio.h"
#include <string.h>
#include"mystring.h"
#include<unistd.h>
int main()
{
	MyFile* fp = MyFopen("./log.txt","a");
	char* msg = (char*)"hello myFile!!!";
	int cnt = 10;
	while(cnt--)
	{
		MyWrite(fp,msg,strlen(msg));
		printf("buffer:%s\n",fp->outbuffer);
		sleep(1);
	}
	MyFclose(fp);
	const char* msg2 = "hello world\n";
	printf("strlen: %d\n",mystrlen(msg2));
	return 0;
}

